package com.wuyi.service;

import com.github.pagehelper.PageInfo;
import com.wuyi.pojo.Resource;
import com.wuyi.pojo.bo.CenterResDelBO;
import com.wuyi.pojo.bo.ResourceBO;
import com.wuyi.pojo.bo.ResourcesBO;
import com.zc.utils.JSONResult;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @author 曾川
 * @version 1.0.0
 * @ClassName ResourceService.java
 * @Description 资源相关接口
 * @createTime 2021年10月19日 13:13:00
 */
public interface ResourceService {



    public List<Resource> list();

    //上传资源
    public JSONResult addResource(ResourcesBO resourcesBO) throws IOException;

    //新增资源
    /*public void addRes(String resourceName,Integer resourceCid,String resourceUid,
                       String resourceDesc,String coverPath,String filePath);*/


    public List<Resource> queryResInfo(ResourceBO resourceBO);

    /**
     * 下载资源
     * @param path
     * @param response
     */
    public void download(String path, HttpServletResponse response);



    public PageInfo queryResList(String userName, String resourceName, Integer categoryId,
                                 Integer pageNum, Integer pageSize);

    public JSONResult delRes(CenterResDelBO resDelBO);

}
